var index = require("./indexCtrl");
var express = require("express");
var r = express.Router();

//乐购首页
r.get("/",index.index);
//乐购主页接口
r.post("/getMainList",index.getMainList);
//乐购新品
r.get("/newProduct",index.newProduct);
//乐购新品主页接口
r.post("/getNewMainList",index.getNewMainList);
//乐购新品商品列表
r.post("/getNewProductList",index.getNewProductList);
//折扣专场
r.get("/discount",index.discount);
//乐购折扣列表
r.post("/getDiscountsList",index.getDiscountsList);
//幸运秒杀
r.get("/secondKill",index.secondKill);
//乐购秒杀列表
r.post("/getSeckillALLList",index.getSeckillALLList);
//幸福爆款
r.get("/bursting",index.bursting);
//乐购爆款列表
r.post("/getLuckyBurstALLList",index.getLuckyBurstALLList);
//商品分类
r.get("/goodsClassify",index.goodsClassify);
//乐购一级分类
r.post("/getCategoryList",index.getCategoryList);
//乐购子分类
r.post("/getSubCategoryList",index.getSubCategoryList);
//商品分类-商品列表
r.get("/goodsList",index.goodsList);
//乐购子分类商品
r.post("/getCategoryProductList",index.getCategoryProductList);
//商品详情
r.get("/goodsDetails",index.goodsDetails);
//乐购商品详情
r.post("/getProductById",index.getProductById);
//乐购商品评价
r.post("/getProductCommentById",index.getProductCommentById);
//乐购-爆款商品详情
r.post("/getLuckyBurstById",index.getLuckyBurstById);
//乐购-折扣商品详情
r.post("/getProductDiscountsById",index.getProductDiscountsById);
//乐购-秒杀商品详情
r.post("/getSeckillById",index.getSeckillById);
//乐购-商品Sku信息
r.post("/getProductSkuBySku",index.getProductSkuBySku);
//购物车
r.get("/shoppingCart",index.shoppingCart);
//乐购-加入购物车
r.post("/addCart",index.addCart);
//乐购-删除购物车
r.post("/deleteCartByid",index.deleteCartByid);
//乐购-购物车数量
r.post("/cartCount",index.cartCount);
//乐购-购物车列表
r.post("/cartList",index.cartList);
//乐购-修改购物车数量
r.post("/updateCart",index.updateCart);
//确认订单
r.get("/confirmOrder",index.confirmOrder);
//乐购-预下单
r.post("/preorder",index.preorder);
//乐购-购物车是否加入储物箱
r.post("/cartIsStorage",index.cartIsStorage);
//乐购-结算订单
r.post("/saveOrder",index.saveOrder);
//乐购-支付
r.post("/payOrder",index.payOrder);
//我的订单
r.get("/myOrder",index.myOrder);
//乐购-订单列表
r.post("/userOrderList",index.userOrderList);
//我的订单详情
r.get("/myOrderInfo",index.myOrderInfo);
//乐购-订单详情
r.post("/userOrderInfo",index.userOrderInfo);
//申请退款
r.get("/applyRefund",index.applyRefund);
//订单申请退款
r.post("/userOrderRefund",index.userOrderRefund);
//申请售后
r.get("/applyAftersale",index.applyAftersale);
//订单申请售后
r.post("/userOrderRefundAfter",index.userOrderRefundAfter);
//取消退款
r.post("/canceluserOrderRefund",index.canceluserOrderRefund);
//取消退货退款
r.post("/canceluserOrderRefundAndGoods",index.canceluserOrderRefundAndGoods);
//退货物流
r.post("/returnLogistics",index.returnLogistics);
//拒绝退货
r.post("/refuseReturnGoods",index.refuseReturnGoods);
//买家取消投诉
r.post("/canceluserOrderComplaint",index.canceluserOrderComplaint);
//物流信息
r.post("/logisticsInformation",index.logisticsInformation);
//删除订单
r.post("/deleteuserOrder",index.deleteuserOrder);
//取消订单
r.post("/canceluserOrder",index.canceluserOrder);
//确认收货
r.post("/confirmCollectGoods",index.confirmCollectGoods);
//优惠券
r.get("/coupon",index.coupon);
//乐购-商品-优惠券列表
r.post("/getCouponsByProductId",index.getCouponsByProductId);
//优惠券详情
r.get("/couponInfo",index.couponInfo);
//乐购-商品-优惠券详情
r.post("/getCouponByCouponId",index.getCouponByCouponId);
//乐购-购买优惠券
r.post("/buyCoupon",index.buyCoupon);
//新人专享
r.get("/newlyweds",index.newlyweds);
//获取新人专享类型
r.post("/getNewUserVip",index.getNewUserVip);
//获取新人专享类型-列表
r.post("/getNewUserVipList",index.getNewUserVipList);
//获取新人专享优惠券详情
r.post("/getNewUserVipCouponByCouponId",index.getNewUserVipCouponByCouponId);
//乐购-购买新人专享优惠券
r.post("/buyNewUserVipCoupon",index.buyNewUserVipCoupon);
//支付成功
r.get("/paymentOK",index.paymentOK);
//拼团详情
r.get("/collageInfo",index.collageInfo);
//获取拼团详情
r.post("/getCollageByCouponId",index.getCollageByCouponId);
//乐购-购买拼团优惠券
r.post("/buyCollageByCouponId",index.buyCollageByCouponId);
//拼团详情
r.get("/collageInfo",index.collageInfo);
//乐购-拼团-订单详情
r.post("/getCollageByOrderNumber",index.getCollageByOrderNumber);
//拼团详情-和谁拼团
r.get("/collageAdd",index.collageAdd);
//乐购-拼团
r.post("/buyCollageByOrderId",index.buyCollageByOrderId);
//拼团成功
r.get("/collageOK",index.collageOK);
//爆款活动
r.get("/burstingActivity",index.burstingActivity);
//爆款活动详情
r.get("/burstingInfo1",index.burstingInfo1);
//爆款活动详情-分享
r.get("/burstingInfo",index.burstingInfo);
//获取爆款活动类型
r.post("/getLuckyBurst",index.getLuckyBurst);
//获取爆款活动-列表
r.post("/getLuckyBurstList",index.getLuckyBurstList);
//乐购-购买爆款优惠券
r.post("/buyLuckyBurst",index.buyLuckyBurst);
//乐购-爆款优惠-详情
r.post("/luckyBurstDetail",index.luckyBurstDetail);
//乐购-爆款优惠-详情-分享
r.post("/luckyBurstDetailEx",index.luckyBurstDetailEx);
//乐购-爆款优惠-看视频获取能量
r.post("/getLuckyBurstByAdv",index.getLuckyBurstByAdv);
//乐购-爆款优惠-好友点赞获取能量
r.post("/getLuckyBurstByFriend",index.getLuckyBurstByFriend);
//乐购-爆款优惠-好友点赞获取能量-分享
r.post("/getLuckyBurstByFriendEx",index.getLuckyBurstByFriendEx);
//助力好友
r.get("/goodFriend",index.goodFriend);
//乐购-爆款优惠-助力好友
r.post("/getLuckyBurstFriends",index.getLuckyBurstFriends);
//活动结束
r.get("/activityEnd",index.activityEnd);
//活动说明
r.get("/activityExplain",index.activityExplain);
//商品搜索历史
r.post("/shopSearchProductHistory",index.shopSearchProductHistory);
//搜索商品-提示框
r.post("/searchProduct",index.searchProduct);
//清空搜索历史
r.post("/emptySearchHistory",index.emptySearchHistory);
//乐购-搜索-商品列表
r.post("/searchProductList",index.searchProductList);
//店铺
r.get("/shopIndex",index.shopIndex);
//店铺页
r.post("/getShopById",index.getShopById);
//店铺信息
r.post("/getShopInfo",index.getShopInfo);
//店铺-推荐商品
r.post("/getShopRemProduct",index.getShopRemProduct);
//店铺-商品页
r.post("/getShopProduct",index.getShopProduct);
//店铺-热销
r.post("/getShopProductByOrder",index.getShopProductByOrder);
//店铺-上新页
r.post("/getShopProductByCreate",index.getShopProductByCreate);
//店铺-收藏店铺
r.post("/collectShopById",index.collectShopById);
//店铺详情
r.get("/shopDetails",index.shopDetails);
//乐购-我的-商品-优惠券列表
r.post("/getMyCouponsByProductId",index.getMyCouponsByProductId);
//乐购-首页-底部商品列表
r.post("/bottomProductList",index.bottomProductList);
module.exports = r;